package com.szrt.java.day20161229.demo03;

public class Car {
	
	
	public static void main(String[] args) {
		Car car = new Car();
		car.setBrand("宝马");
		car.setPrice(200000.05);
		car.setWeight(2000.34);
		
		System.out.println(car.getBrand());
		System.out.println(car.getPrice());
		System.out.println(car.getWeight());
		
		

	}
	
	
	
	/**
	 * 品牌
	 */
	String brand;
	
	/**
	 * 价格
	 */
	double price;
	
	/**
	 * 重量
	 */
	double weight;
	
	
	
	

	public String getBrand() {
		return brand;
	}





	public void setBrand(String brand) {
		this.brand = brand;
	}





	public double getPrice() {
		return price;
	}





	public void setPrice(double price) {
		this.price = price;
	}





	public double getWeight() {
		return weight;
	}





	public void setWeight(double weight) {
		this.weight = weight;
	}





	

}
